[WAYP-3244] Switch to new Waypoint API version#1208
Conversation
|
@hanshasselberg can you get a review from your team please? |
97f2095 to
0900ebe
Compare
paladin-devops
left a comment
There was a problem hiding this comment.
This looks great! My requested changes are only for removing the _v2 suffix on the package alias since it's not necessary.
internal/clients/client.go
Outdated
|
|
||
| cloud_waypoint "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/client" | ||
| "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/client/waypoint_service" | ||
| cloud_waypoint_v2 "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2024-11-22/client" |
There was a problem hiding this comment.
I think this can still remain as cloud_waypoint; in the event that multiple versions need to be supported here simultaneously, we should probably suffix the date to be consistent with how they're versioned.
|
|
||
| sharedmodels "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" | ||
| waypoint_models "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/models" | ||
| waypoint_models_v2 "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2024-11-22/models" |
There was a problem hiding this comment.
I think that this _v2 suffix for models is not needed either.
| Computed: true, | ||
| Description: "The user who created the Add-on.", | ||
| Computed: true, | ||
| DeprecationMessage: "This attribute is deprecated and will be removed in a future version of the provider.", |
38cec3c to
8906e2c
Compare
This PR is in a good state to merge, I would appreciate a review from your team! Thank you! |
|
@HenryEstberg I am not in the github team that you need reviewing from. |
…ate, as it has been removed from the Waypoint API
f716c0e
05bd4a9 to
f716c0e
Compare
🛠️ Description
Waypoint API calls are now all made to the new 20241122 version of the API.
In addition, the CreatedBy resource is now marked as deprecated so that it can be completely removed in a future update to the Waypoint provider.
🏗️ Acceptance tests
Output from acceptance testing: